package chixing.day17.homework.work3;

public class Product {
    private int proId;//物资编号
    private String proName;//物资名称
    private String proSupplier;//供应商
    private long proStock;//库存数量

    public Product(){}
    public Product(int proId, String proName, String proSupplier, long proStock) {
        this.proId = proId;
        this.proName = proName;
        this.proSupplier = proSupplier;
        this.proStock = proStock;
    }

    public int getProId() {
        return proId;
    }

    public void setProId(int proId) {
        this.proId = proId;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public String getProSupplier() {
        return proSupplier;
    }

    public void setProSupplier(String proSupplier) {
        this.proSupplier = proSupplier;
    }

    public long getProStock() {
        return proStock;
    }

    public void setProStock(long proStock) {
        this.proStock = proStock;
    }

    @Override
    public String toString() {
        return "Product{" +
                "proId=" + proId +
                ", proName='" + proName + '\'' +
                ", proSupplier='" + proSupplier + '\'' +
                ", proStock=" + proStock +
                '}';
    }
}
